package ru.payment.wm.impl.response;

import ru.payment.wm.Invoice;
import ru.payment.wm.InvoiceState;

import java.util.Date;

/**
 *
 * User: sergey
 * Date: 14.04.2009
 * Time: 21:38:01
 *
 */
public class InvoiceImpl implements Invoice {

  private String invoiceWmId;
  private String tsWmId;
  private long orderId;
  private String customerWmId;
  private String storePurse;
  private float amount;
  private String description;
  private String address;
  private int period;
  private int expiration;
  private InvoiceState state;
  private Date createDate;
  private Date updateDate;

  private String customerPurse;
  private long wmTransactionId;

  public String getWmInvoiceId() {
    return invoiceWmId;
  }

  public void setWmInvoiceId(String invoiceWmId) {
    this.invoiceWmId = invoiceWmId;
  }

  public String getWmTsId() {
    return tsWmId;
  }

  public void setWmTsId(String tsWmId) {
    this.tsWmId = tsWmId;
  }

  public long getOrderId() {
    return orderId;
  }

  public void setOrderId(long orderId) {
    this.orderId = orderId;
  }

  public String getCustomerWmId() {
    return customerWmId;
  }

  public void setCustomerWmId(String customerWmId) {
    this.customerWmId = customerWmId;
  }

  public String getStorePurse() {
    return storePurse;
  }

  public void setStorePurse(String storePurse) {
    this.storePurse = storePurse;
  }

  public float getAmount() {
    return amount;
  }

  public void setAmount(float amount) {
    this.amount = amount;
  }

  public String getDescription() {
    return description;
  }

  public void setDescription(String description) {
    this.description = description;
  }

  public String getAddress() {
    return address;
  }

  public void setAddress(String address) {
    this.address = address;
  }

  public int getPeriod() {
    return period;
  }

  public void setPeriod(int period) {
    this.period = period;
  }

  public int getExpiration() {
    return expiration;
  }

  public void setExpiration(int expiration) {
    this.expiration = expiration;
  }

  public InvoiceState getState() {
    return state;
  }

  public void setState(InvoiceState state) {
    this.state = state;
  }

  public Date getCreateDate() {
    return createDate;
  }

  public void setCreateDate(Date createDate) {
    this.createDate = createDate;
  }

  public Date getUpdateDate() {
    return updateDate;
  }

  public void setUpdateDate(Date updateDate) {
    this.updateDate = updateDate;
  }

  public String getCustomerPurse() {
    return customerPurse;
  }

  public void setCustomerPurse(String customerPurse) {
    this.customerPurse = customerPurse;
  }

  public long getWmTransactionId() {
    return wmTransactionId;
  }

  public void setWmTransactionId(long wmTransactionId) {
    this.wmTransactionId = wmTransactionId;
  }

  @Override
  public String toString() {
    return  "wmInvoiceId: "+invoiceWmId+"\n"+
            "wmTsId: "+tsWmId+"\n"+
            "orderId: "+orderId+"\n"+
            "customerWmId: "+customerWmId+"\n"+
            "storePurse: "+storePurse+"\n"+
            "amount: "+amount+"\n"+
            "description: "+description+"\n"+
            "address: "+address+"\n"+
            "period: "+period+"\n"+
            "expiration: "+expiration+"\n"+
            "state: "+state+"\n"+
            "createDate: "+createDate+"\n"+
            "updateDate: "+updateDate+"\n"+
            "customerPurse: "+customerPurse+"\n"+
            "wmTransactionId: "+wmTransactionId;
  }

}
